package com.epmis.epmis.Mapper;

import com.epmis.epmis.pojo.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface ExamineMapper {
    List<Examine> findMyApplicant(int id);

    List<Examine> findMyApplicantComplete(int id);

    List<Examine> SearchMyApplicant(HashMap<String,Object> map);
 
    List<Examine> findMyExamine(int id);

    List<Examine> findMyExamineComplete(int id);

    List<Examine> SearchMyExamine(HashMap<String,Object> map);

    Examine getExamineMessage(int id);

    List<ExamineProcess> getExamineProcess(int id);

    List<Accessory> getExamineFiles(int id);

    List<ExamineProcess> getExamineCurrentProcess(int id);

    List<Activity> getExamineActivity(int id);

    ExamineProcess getExamineUserProcess(int id,int userId);

    int createExamineComment(Comment comment);

    int createExamineActivity(Activity activity);

    int agreeExamine(int id,int userId);

    int refuseExamine(int id,int userId);

    int updateExamineState(HashMap<String,Object> map);

    int deleteExamine(int id);

    int deleteExamineProcess(int id);

    int deleteExamineAllComment(int id);

    int deleteExamineActivity(int id);

    int deleteExamineFile(int id);

    int deleteExamineComment(int id);
}
